package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.Discount;

public interface DiscountMapper {
    int deleteByPrimaryKey(Long rechargeableCardDiscountId);

    int insert(Discount record);

    int insertSelective(Discount record);

    Discount selectByPrimaryKey(Long rechargeableCardDiscountId);

    int updateByPrimaryKeySelective(Discount record);

    int updateByPrimaryKey(Discount record);
    
    int deleteByMerchantKey(Long merchantId);
    
    Discount loadByMerchantAndDiscount(@Param("merchantId")Long merchantId,@Param("discount")Integer discount);
    List<Discount> loadByMerchantId(Long merchantId);
}